﻿@{
    ViewBag.Title = "ViewWishList";
   
}
<style>
    .housewrap
    {
        position: relative;
        height: 250px;
        margin-bottom: 20px;
        margin-left: 10px;
        border-bottom: 1px solid #D8D8D8;
    }
    .housecontainer
    {
        margin-left: 25px;
        margin-right: 20px;
        float: left;
        top: 10px;
        position: relative;
        font-family: "Helvetica Neue" ,Helvetica,Arial,sans-serif;
        margin-top: 10px;
    }
    .housecontainer img
    {
        height: 200px;
        width: 260px;
        border: 1px solid #333;
    }
    .housecontainer img:hover
    {
        border: 1px solid rgba(237, 29, 137, 0.8);
        -webkit-box-shadow: 0 0 6px rgba(237, 29, 137, 0.8),0 0 0 black;
        -moz-box-shadow: 0 0 6px rgba(237,29,137,0.8),0 0 0 #000;
        box-shadow: 0 0 6px rgba(237, 29, 137, 0.8),0 0 0 black;
    }
    .caption
    {
        padding: 35px 10px 5px;
        background-color: transparent;
        border-width: 0;
        width: 260px;
        bottom: 4px;
        position: absolute;
        color: white;
    }
    
    #headbox
    {
        height: 50px;
        background-color: #c30;
        text-align: left;
        font-size: 1.5em;
        padding-left: 10px;
        color: white;
    }
    #mywishlist
    {
        width: 100%;
        background-color: white;
        padding-bottom: 20px;
    }
    #information
    {
        float: left;
        margin-left: 10px;
        font-size: 1.2em;
    }
    #information p:hover
    {
        color: seagreen;
    }
    #remove a
    {
        text-decoration: none;
        background: #4D97F1;
        display: inline-block;
        color: white;
        font-family: Helvetica, Arial, sans-serif;
        font-weight: 900;
        padding: 4px 4px;
        font-size: 15px;
        left: 125px;
        top: 97px;
        width: 75px;
        text-align: center;
    }
    #remove a:hover {
        background-color: #EF411A;
    }
    #titlepost
    {
        color: #1D95CB;
    }
    #price
    {
        font-size: 1.2em;
    }
    #price a:hover
    {
        color: violet;
    }
</style>
<div id="headbox"> My Wishlist</div>
<div id="mywishlist">
@{
    if(ViewBag.WishList ==null)
    {
        <h1>Your wishlist is empty</h1>
    }
    else
    {
        foreach(var item in ViewBag.WishList)
        {
           
            <div class="housewrap">
                <div class="housecontainer" >
                    <a href="#">
                        <img src="../../Content/images/BannerSearch/house3.jpg"/>
                        <div class="caption">
                            <p></p>
                        </div>
                      
                    </a>
                </div>
                <div id="information">
                    <p>
                    <div id="titlepost">@item.PostTitle</div>
                    <div id="address">@item.Address</div>
                    <div id="price"><a>@item.PricePerDay  $ Perday</a></div>
                        <div id="timeadd">@item.TimeAdded</div>
                        <div id="remove">
                    <a href='/Posts/DeleteWishListItem?itemID=@item.WishListID'>
                        Remove
                    </a></div>
                    </p>
                </div>
        </div>
        }
       
    }
}
 </div>